import request from '@/axios/index';

/**
 * 登录
 * @param data
 * @returns {AxiosPromise}
 */
export const login = data=>{
    return request({
        url:'/auth/login',
        method:'post',
        data
    });
};
/**
 * 获取用户信息
 * @returns {*}
 */
export const getSysUser = ()=>{
    return request({
        url:'/auth/getSysUser',
        method:'get'
    });
};